Skip to content

feat(1688): add browser adapter and docs#650

Open
leozejia wants to merge 2 commits intojackwener:mainfrom
leozejia:feat/1688-browser-adapter-clean
Open

feat(1688): add browser adapter and docs#650
leozejia wants to merge 2 commits intojackwener:mainfrom
leozejia:feat/1688-browser-adapter-clean

Conversation

@leozejia
Copy link
Copy Markdown
Contributor

Summary

  • add a browser adapter for 1688 with search, item, and store commands
  • normalize common public fields needed for downstream supplier evaluation
  • document adapter usage, testing, and runtime troubleshooting

Details

  • search extracts offer summaries, price/MOQ/delivery snippets, and store entry points
  • item extracts public offer fields and linked supplier/store metadata
  • store supports both store host and memberId input, including real alphanumeric member IDs such as b2b-22154705262941f196
  • troubleshooting docs now call out CDP navigation collisions when multiple website commands hit the same browser target in parallel

Verification

  • npx vitest run src/clis/1688/*.test.ts
  • npm run build
  • OPENCLI_CDP_ENDPOINT=http://127.0.0.1:56888 node dist/main.js 1688 search "桌面置物架 宿舍 收纳" --limit 1 -f json
  • OPENCLI_CDP_ENDPOINT=http://127.0.0.1:56888 node dist/main.js 1688 item 841141931191 -f json
  • OPENCLI_CDP_ENDPOINT=http://127.0.0.1:56888 node dist/main.js 1688 store b2b-22154705262941f196 -f json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant